package patterns.behavior.status;

public class BookStatusKJC extends patterns.behavior.status.BookStatus {

    public BookStatusKJC(){
    }

    @Override
    void rk(patterns.behavior.status.BookContext bookContext) {
        System.out.println("cannot do anything!");
    }

    @Override
    void pshds(patterns.behavior.status.BookContext bookContext) {
        bookContext.setBookStatus(bookContext.XJ);
        System.out.println("可借出状态-----[破损或丢失]----->下架");
    }

    @Override
    void ck(patterns.behavior.status.BookContext bookContext) {
        System.out.println("cannot do anything!");
    }

    @Override
    void yd(patterns.behavior.status.BookContext bookContext) {
        bookContext.setBookStatus(bookContext.YY);
        System.out.println("可借出状态-------[预定]----->预约状态");
    }

    @Override
    void qxyd(patterns.behavior.status.BookContext bookContext) {
        System.out.println("cannot do anything!");
    }

    @Override
    void ydgq(patterns.behavior.status.BookContext bookContext) {
        System.out.println("cannot do anything!");
    }

    @Override
    void jc(patterns.behavior.status.BookContext bookContext) {
        bookContext.setBookStatus(bookContext.JC);
        System.out.println("可借出状态------借出----->预约状态");
    }

    @Override
    void gh(patterns.behavior.status.BookContext bookContext) {
        System.out.println("cannot do anything!");
    }
}
